package com.engineering.elink.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.co.BaseCo;
import com.engineering.elink.domain.Collection;

public interface CollectionMapper {
    int deleteByPrimaryKey(Integer collectionId);

    int insert(Collection record);

    int insertSelective(Collection record);

    Collection selectByPrimaryKey(Integer collectionId);

    int updateByPrimaryKeySelective(Collection record);

    int updateByPrimaryKey(Collection record);

	int select(@Param("userId")String userId, @Param("fkId")String fkId);

	void delete(@Param("userId")String userId, @Param("fkId")String fkId);

	List<Map<String, Object>> selectMyCollect(@Param("co")BaseCo co, @Param("userId")String userId,@Param("type")int type);

	int selectCountMyCollect(@Param("userId")String userId,@Param("type")int type);
}